package com.webdev.newtech.test;

import com.webdev.newtech.dao.ISysUserDao;
import com.webdev.newtech.dao.impl.SysUserDaoImplMsql;
import com.webdev.newtech.dao.impl.SysUserDaoImplSqlserver;
import com.webdev.newtech.domain.SysUser;

public class test {
    public static void main(String[] args) {
        //要使用的时候，自己去new一个对象，然后拿到实例之后进行调用
        ISysUserDao userDao = new SysUserDaoImplMsql();
        userDao.add(new SysUser());

        ISysUserDao userDao2 = new SysUserDaoImplSqlserver();
        userDao2.getById(3L);

        ISysUserDao userDao3 = new SysUserDaoImplMsql();
        userDao3.add(new SysUser());
    }
}
